package com.jh.dto;

import com.jh.entity.InventoryTransactionDetailIn;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class InventoryTransactionSaveDTO {
    private Integer type;//类型：1-入库，2-出库

    @NotNull(message = "出入库单号不能为空")
    private String transactionCode;//出入库单号

    @NotNull(message = "来源地/目的地不能为空")
    private String source;//来源地/目的地

    private String remark;//备注

    private List<InventoryTransactionDetailIn> details;//出入库明细
}
